﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain
{
    /// <summary>
    /// 用户行为日志记录
    /// </summary>
    [Serializable]
    public  class BehaviorLog
    {
        public BehaviorLog() {
            create_time = DateTime.Now;
        }
        /// <summary>
        /// 自增id
        /// </summary>
        public virtual int id { get; set; }
        /// <summary>
        /// 行为类型
        /// 1进场刷卡，2进场刷指纹，3存物刷卡，4取物刷卡，5出场刷卡
        /// </summary>
        public virtual int behavior_type { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime create_time { get; set; }
        /// <summary>
        /// 行为是否成功 
        /// 1 成功  ，2失败
        /// </summary>
        public virtual int behavior_status { get; set; }
        /// <summary>
        /// 错误描述
        /// </summary>
        public virtual string error_msg { get; set; }
        /// <summary>
        /// 用户卡号
        /// </summary>
        public virtual string card_no { get; set; }
        /// <summary>
        /// 储物柜编号
        /// </summary>
        public virtual string lockers_no { get; set; }
        /// <summary>
        /// 闸机编号
        /// </summary>
        public virtual string brakemachine_no { get; set; }

        /// <summary>
        /// 某次进出闸机唯一标号
        /// </summary>
        public virtual string in_out_code { get; set; }

    }
}
